package com.heima.day2.test10;

import com.heima.day2.test8.Woman;

import java.util.ArrayList;

public class Product {
    private int id;
    private String name;
    private double price;
    private int total;

    public Product() {
    }

    public Product(int id, String name, double price, int total) {
        this.id = id;
        this.name = name;
        this.price = price;
        this.total = total;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public int getTotal() {
        return total;
    }

    public void setTotal(int total) {
        this.total = total;
    }
    public void showShop(){
        System.out.println("id"+id+"名称："+name+" 价格："+price+" 数量："+total);
    }
    public double totalPrice(ArrayList arrayList){
    return 0;
    }
}
